﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPlayerTitle extends IMessageBase
    {
        public var updateType:EUpdateType;
        public var title:STitle;
        public const _type:int = 12141;
        public static var _regist:SPlayerTitle = new SPlayerTitle(true);

        public function SPlayerTitle(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPlayerTitle();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.updateType.__write(param1);
            this.title.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.updateType = EUpdateType.__read(param1);
            this.title = new STitle();
            this.title.__read(param1);
            return;
        }// end function

    }
}
